import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
// import HelloWorld2 from '@/components/HelloWorld2'
import Login from '@/page/login'
import IndexVue from '@/page/index.vue'
import userData from '@/components/userData.vue'
import interfaceData from '@/components/interfaceData.vue'
import performance from '@/components/performance.vue'
import Test from '@/page/test.vue'
Vue.use(Router)

export default new Router({
    mode: 'history',
    routes: [{
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/test',
            name: 'test',
            component: Test
        },
        {
            path: '/index',
            name: 'Index',
            component: IndexVue,
            children: [{
                path: 'userData',
                component: userData
            },{
                path: 'interfaceData',
                component: interfaceData
            },{
                path: 'performance',
                component: performance
            }, ]
        }
    ]
})